package com.hunter.common.util;

import java.util.UUID;



/**
 * code 工具类
 * Created by hunter on 2017/6/8.
 */
public class CodeUtil {


    /**
     * 生成app token
     * @return
     */
    public static String createAppToken() {
    	return UUID.randomUUID().toString();
    }

    /**
     * 生成用户密码的slat
     * @return
     */
    public static String createPasswordSalt() {
    	return (int)(Math.random()*9000)+1000+"";
    }
    
    public static void main(String[] args) {
		System.out.println(createPasswordSalt());
	}

}
